# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-marshmallow-enum
_pkgname=marshmallow-enum
pkgver=1.5.1
pkgrel=5
pkgdesc='Enum handling for Marshmallow'
arch=('any')
url='https://pypi.org/project/marshmallow-enum/#files'
license=('MIT')
depends=('python' 'python-marshmallow')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('cd0a0e9ae1748dc7984d6b9c2affbbf4ba00ec84474d2762144f4f3f8a8aa2065f4eb04e0bbc29028453202319e4869350527356ab2d651bc4d2a4cc271e857c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

